package model;

import java.net.InetAddress;

/**
 * This class represents remote users and their informations
 */
public class RemoteUser {

	private String username;
	private InetAddress ip;
	
	/**
	 * @param username is the remote user's username
	 * @param ip is the remote user's ip address
	 */
	public RemoteUser(String username, InetAddress ip) {
		this.username = username;
        this.ip = ip; 
    }
	
	/**
	 * @return the remote user's username
	 */
	public String getUsername() {
		return this.username;
	}
	
	/**
	 * @return the remote user's ip address
	 */
	public InetAddress getIP() {
		return this.ip;
	}
	
	/**
	 * @Override
	 */
	public String toString() {
		return this.username;
	}
}
